* {
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    width: 600px;
    height: 400px;
    border: 3px solid black;
}

ul {
    display: flex;
}

ul,
ol {
    list-style: none;
}

ul li {
    flex: 1;
    background: pink;
    text-align: center;
    line-height: 50px;
}

ol li {
    display: none;
    line-height: 350px;
}

.box ol {
    flex: 1;
    justify-content: center;
    align-items: center;
    display: flex;
}

ul li.active {
    background: transparent;
}

ol li.active {
    display: flex;
    text-align: center;
    /* line-height: 350px; */
}